<%@page contentType="text/html" pageEncoding="UTF-8" language="java" %>
<%@page import="java.util.*" %>
<%@page import="autenticacion.Capa_Presentacion.frmLogin"%>
<%
    //frm=autenticacion&class=logout&type=show
    String _class   = request.getParameter("class");
    String _type    = request.getParameter("type");
    String html="";
    if (_class.equals("login")){
        if (_type.equals("show")){
            frmLogin frm = new frmLogin();
            html = frm.show();
        }
        else if (_type.equals("validate")){
            String user = request.getParameter("user");
            String pass = request.getParameter("pass");
            frmLogin frm = new frmLogin();
            if (frm.validarUsuario_control(user, pass)){
               
            }
            else{
                html="nologin";
            }
        }
    }
    out.print(html);
%>